Efficient EWA video rendering

ABSTRACT

Techniques are disclosed for rendering images. The techniques include receiving an input image associated with a source space, the input image comprising a plurality of source pixels, and applying an adaptive transformation to a source pixel, where the adaptive transformation maps the source pixel to a target space associated with an output image comprising a plurality of target pixels. The techniques further include determining a target pixel affected by the source pixel based on the adaptive transformation. The techniques further include writing the transformed source pixel into a location in the output image associated with the target pixel.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates generally to the field of video processing and, more specifically, to efficient EWA video rendering.

2. Description of the Related Art

Visual content is presented on a broad range of displays, from large scale cinema screens, consumer flat screen monitors, and personal computer screens to various types of mobile devices. Typically, one or more aspects of the visual content are changed in order to present the content in a form that is compatible with a particular display. Because picture element (pixel) resolution, aspect ratio, and frame rate of displays vary significantly, rendering visual content from a source format into a target format is practically performed at or near the display, rather than at or near the source of the visual content. In addition, various transformations are often added to visual content, such as image rotation, image size reduction or magnification, special effects such as water-rippling effects, and the like.

Various applications benefit from rendering video from the source format to the target format using a non-linear scaling technique. With non-linear scaling, certain portions of the visual content may be rendered using one scaling factor, while other portions of the visual content are rendered using other scaling factors. With content aware video retargeting from one aspect ratio to another, visually important regions of the content are scaled linearly to retain their original aspect ratio and to avoid distortion. Visually less important regions of the content are distorted more via non-linear scaling to accommodate the visually more important regions. With stereoscopic three-dimensional (S3D) viewing, the impression of depth may be increased or decreased by non-linearly scaling certain portions of the visual content more or less, relative to other portions. The degree of non-linear scaling could be controlled, for example, by a depth control associated with the display. With multi-viewer stereoscopic displays, multiple S3D signals are delivered to the display, where each S3D signal may be created using different non-linear scaling parameters. Each viewer may select one of the multiple S3D signals for viewing based on the viewer's distance and angle with respect to the display.

Scaling may be performed via any technically feasible approach known in the art, including, without limitation, interpolation techniques, such as bilinear interpolation, Lanczos interpolation, linear interpolation, and kernel splatting, and anti-aliasing techniques, such as super-sampling, mip-mapping, and kernel splatting. One such technique uses a non-linear scaling approach for interpolation and anti-aliasing called elliptical weighted average (EWA) rendering, which is also known as EWA splatting. EWA splatting implicitly handles anti-aliasing efficiently relative to at least some other techniques. However, current EWA splatting techniques suffer from over-blurring of the visual content, causing a reduced visual experience. In addition, EWA is computationally expensive, typically using special processing units such as graphics processing units (GPU). These special processing units may be costly, large in size, and have relatively high power requirements, making current EWA splatting techniques impractical for consumer displays such as flat screen monitors and mobile devices.

SUMMARY OF THE INVENTION

One embodiment of the present invention includes an approach for non-linear EWA splatting in display devices with improved quality and reduced computational complexity. Based on this approach, an efficient hardware architecture for consumer displays, such as flat screen monitors and mobile devices, may be implemented. Such a hardware architecture may be able to render high-definition (HD) video content, including S3D and multi-viewer content, in real time, with modest hardware cost and using low processor clock speeds.

One embodiment of the present invention includes a method for rendering an input image. The method includes receiving an input image associated with a source space, the input image comprising a plurality of source picture elements (pixels), and applying an adaptive transformation to a source pixel within the plurality of source pixels, where the adaptive transformation maps the source pixel to a target space associated with an output image comprising a plurality of target pixels. The method further includes determining a target pixel, of the plurality of target pixels, that is affected by the source pixel based on the adaptive transformation. The method further includes writing the transformed source pixel into a location in the output image associated with the target pixel.

Other embodiments include, without limitation, a computer-readable storage medium that includes instructions that enable a processing unit to implement one or more aspects of the disclosed methods as well as a computing system configured to implement one or more aspects of the disclosed methods.

BRIEF DESCRIPTION OF THE DRAWINGS

So that the manner in which the above recited features of the invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments of this invention and are therefore not to be considered limiting of its scope, for the invention may admit to other equally effective embodiments.

FIG. 1 depicts one architecture of a system, according to one embodiment of the present invention.

FIG. 2 illustrates various steps of the EWA splatting technique, according to one embodiment of the invention.

FIG. 3 illustrates the determination of a bounding box to apply to a Gaussian filter, according to one embodiment of the invention.

FIG. 4 illustrates an EWA rendering system as implemented within the display processor of FIG. 1, according to one embodiment of the present invention.

FIG. 5 illustrates an EWA splatting unit as implemented within the EWA rendering system of FIG. 4, according to one embodiment of the present invention.

FIG. 6 illustrates a method for rendering images using EWA splatting, according to one embodiment of the present invention.

DETAILED DESCRIPTION

Embodiments of the invention involve efficiently warping visual content from a source space to a target space based on a given mapping function resulting in a target image with reduced blurring as compared to prior EWA splatting techniques. As further described below, EWA splatting is optimized by choosing certain filter parameters and utilizing an adaptive anti-aliasing technique that determines an optimal tradeoff between blurring and aliasing. Cut-off points for the infinite impulse response (IIR) filters used in EWA rendering are selected in the rendered target space, providing acceptable filter quality with greater computational efficiency relative to ideal IIR filters. A hardware architecture is configured for real-time non-linear EWA rendering of high-resolution images with lower cost, lower power, and smaller integrated circuit size relative to prior techniques. A two-level caching architecture reduces memory bandwidth usage relative to prior techniques.

As is known in the art, EWA rendering or EWA splatting in target space is defined by the equation:

$\begin{matrix} \begin{matrix} {{f_{EWA}(x)} = {\sum\limits_{k \in D_{s}}{w_{k}\frac{1}{J_{k}^{- 1}}{G_{{J_{k}V_{i}J_{k}^{T}} + V_{a}}\left( {x - {m\left( u_{k} \right)}} \right)}}}} \\ {= {\sum\limits_{k \in D_{s}}{\frac{w_{k}{J_{k}}}{2\pi{C}^{1/2}}e^{{{- 1}/2}{({x - {m{(u_{k})}}})}^{T}{C^{- 1}{({x - {m{(u_{k})}}})}}}}}} \end{matrix} & {{Equation}\mspace{14mu} 1} \end{matrix}$ where V_(i) is the Gaussian interpolation covariance matrix, V_(a) is the anti-aliasing covariance matrix, and C≡C_(k)≡J_(k)V_(i)J_(k) ^(T)+V_(a). Note that in Equation 1, the location index k of the EWA covariance matrix C=J_(k)V_(i)J_(k) ^(T)+V_(a) is omitted for ease of notation.

An overall system architecture is described below, followed by a description of optimizing Vi and Va. Selecting an appropriate bounding box to define cut-off points for the Gaussian ellipse is then described, followed by a description of a hardware architecture to implement the improved EWA splatting technique, according to one embodiment.

In one embodiment, rendering visual content from a source format to a target format is efficiently performed in real time with reduced blurring, even for video images at high definition (HD) resolution. As a result, visually pleasing EWA rendering of HD video is possible using less expensive and smaller components relative to current techniques.

Hardware Overview

FIG. 1 depicts one architecture of a system 100, according to one embodiment of the present invention. This figure in no way limits or is intended to limit the scope of the present invention.

System 100 may be a personal computer, video game console, personal digital assistant, rendering engine, or any other device suitable for practicing one or more embodiments of the present invention.

As shown, system 100 includes a central processing unit (CPU) 102 and a system memory 104 communicating via a bus path that may include a memory bridge 105. CPU 102 includes one or more processing cores, and, in operation, CPU 102 is the master processor of system 100, controlling and coordinating operations of other system components. System memory 104 stores software applications and data for use by CPU 102. CPU 102 runs software applications and optionally an operating system. Memory bridge 105, which may be, e.g., a Northbridge chip, is connected via a bus or other communication path 106 (e.g., a HyperTransport link) to an I/O (input/output) bridge 107. I/O bridge 107, which may be, e.g., a Southbridge chip, receives user input from one or more user input devices 108 (e.g., keyboard, mouse, joystick, digitizer tablets, touch pads, touch screens, still or video cameras, motion sensors, and microphones) and forwards the input to CPU 102 via memory bridge 105.

A display processor 112 is coupled to memory bridge 105 via a bus or other communication path 113 (e.g., a PCI Express, Accelerated Graphics Port, or HyperTransport link); in one embodiment display processor 112 is a graphics subsystem that includes at least one graphics processing unit (GPU) and graphics memory. Graphics memory includes a display memory (e.g., a frame buffer) used for storing pixel data for each pixel of an output image. Graphics memory can be integrated in the same device as the GPU, connected as a separate device with the GPU, or implemented within system memory 104.

Display processor 112 periodically delivers pixels to a display device 110 (e.g., a screen or conventional CRT, plasma, OLED, SED or LCD based monitor or television). Additionally, display processor 112 may output pixels to film recorders adapted to reproduce computer generated images on photographic film. Display processor 112 can provide display device 110 with an analog or digital signal.

A system disk 114 is also connected to I/O bridge 107 and may be configured to store content and applications and data for use by CPU 102 and display processor 112. System disk 114 provides non-volatile storage for applications and data and may include fixed or removable hard disk drives, flash memory devices, and CD-ROM, DVD-ROM, Blu-ray, HD-DVD, or other magnetic, optical, or solid state storage devices.

A switch 116 provides connections between I/O bridge 107 and other components such as a network adapter 118 and various add-in cards 120 and 121. Network adapter 118 allows system 100 to communicate with other systems via an electronic communications network, and may include wired or wireless communication over local area networks and wide area networks such as the Internet.

Other components (not shown), including USB or other port connections, film recording devices, and the like, may also be connected to I/O bridge 107. For example, an audio processor may be used to generate analog or digital audio output from instructions and data provided by CPU 102, system memory 104, or system disk 114. Communication paths interconnecting the various components in FIG. 1 may be implemented using any suitable protocols, such as PCI (Peripheral Component Interconnect), PCI Express (PCI-E), AGP (Accelerated Graphics Port), HyperTransport, or any other bus or point-to-point communication protocol(s), and connections between different devices may use different protocols, as is known in the art.

In one embodiment, display processor 112 incorporates circuitry optimized for graphics and video processing, including, for example, video output circuitry, and constitutes a graphics processing unit (GPU). In another embodiment, display processor 112 incorporates circuitry optimized for general purpose processing. In yet another embodiment, display processor 112 may be integrated with one or more other system elements, such as the memory bridge 105, CPU 102, and 110 bridge 107 to form a system on chip (SoC). In still further embodiments, display processor 112 is omitted and software executed by CPU 102 performs the functions of display processor 112.

Pixel data can be provided to display processor 112 directly from CPU 102. In some embodiments of the present invention, instructions and data representing a scene are provided to a render farm or a set of server computers, each similar to system 100, via network adapter 118 or system disk 114. The render farm generates one or more rendered images of the scene using the provided instructions and data. These rendered images may be stored on computer-readable media in a digital format and optionally returned to system 100 for display. Similarly, stereo image pairs processed by display processor 112 may be output to other systems for display, stored in system disk 114, or stored on computer-readable media in a digital format.

Alternatively, CPU 102 provides display processor 112 with data and instructions defining the desired output images, from which display processor 112 generates the pixel data of one or more output images, including characterizing and adjusting the offset between stereo image pairs. The data and instructions defining the desired output images can be stored in system memory 104 or graphics memory within display processor 112. In an embodiment, display processor 112 includes 3D rendering capabilities for generating pixel data for output images from instructions and data defining the geometry, lighting shading, texturing, motion, and camera parameters for a scene. Display processor 112 can further include one or more programmable execution units capable of executing shader programs, tone mapping programs, and the like.

The CPU 102, render farm, or display processor 112 can employ any surface or volume rendering technique known in the art to create one or more rendered images from the provided data and instructions, including, without limitation, rasterization, scanline rendering REYES or micropolygon rendering, ray casting, ray tracing, image-based rendering techniques, and combinations of these and any other rendering or image processing techniques known in the art. In one embodiment, the display processor 112 includes an elliptical weighted average (EWA) video rendering system, as further described below, that is configured to receive an input image and render the input image into a target image using EWA rendering, also known as EWA splatting. The resulting target image may be transmitted by the EWA video rendering system to the display device 110.

It will be appreciated that the system shown herein is illustrative and that variations and modifications are possible. The connection topology, including the number and arrangement of bridges, may be modified as desired. For instance, in some embodiments, system memory 104 is connected to CPU 102 directly rather than through a bridge, and other devices communicate with system memory 104 via memory bridge 105 and CPU 102. In other alternative topologies display processor 112 is connected to I/O bridge 107 or directly to CPU 102, rather than to memory bridge 105. In still other embodiments, I/O bridge 107 and memory bridge 105 might be integrated into a single chip. The particular components shown herein are optional; for instance, any number of add-in cards or peripheral devices might be supported. In some embodiments, switch 116 is eliminated, and network adapter 118 and add-in cards 120, 121 connect directly to I/O bridge 107.

Interpolation and Anti-Aliasing Parameterization

FIG. 2 illustrates various steps of the EWA splatting technique, according to one embodiment of the invention. As shown, and as further described below, a source space interpolation filter 220 is specified in the frequency domain and then a transformed version of the interpolation filter in the target space is shown in 240. The resulting target space interpolation filter 240 of the source space interpolation filter 220 is then convolved with an adaptive anti-aliasing filter 260 to form the final composite interpolation/anti-aliasing filter 280, where filter convolution involves combining two filters to achieve a third, modified filter representing the final composite result of the two individual filters. Note that this final composite interpolation/anti-aliasing filter also referred to herein as the adaptive transformation.

Performance of Gaussian filters, as used in EWA splatting, is dependent on the selected variance. A variance that is too large may introduce excessive blurring of the image while a variance that is too small may introduce aliasing. Selecting a variance representing an optimal balance between blurring and anti-aliasing may thus achieve improved image rendering quality. An optimal covariance matrix is first determined for the circular Gaussian interpolation filter in source space ƒ_(i,EWA)(x)=G_(Vi)(x). From this result, the optimal parameterization of the transformed interpolation kernel in target space ƒ_(i,EWA)(J_(k) ⁻¹x) is determined. Likewise, the optimal interpolation Gaussian in target space is the one determined for the interpolation Gaussian in source space mapped by J_(k) ⁻¹. However, because of the dependency of the optimal interpolation Gaussian in target space in the mapping (J_(k) ⁻¹), the anti-aliasing covariance may be determined locally, thus, the resulting resampling filter may be locally adaptive. Therefore, determining an optimal parameterization of the anti-aliasing filter involves an adaptive anti-aliasing technique as further described below.

First, the interpolation covariance may be optimized in source space, according to one embodiment. To find an optimal balance between blurring and aliasing for the interpolation covariance matrix the mean squared error (MSE) between the EWA filter and an ideal low pass filter may be minimized. The ideal low-pass filter may be given as a two-dimensional (2D) sinc function θ_(i,ideal)(x)=sinc(x) sinc(y), which corresponds to a 2D rectangular function in frequency domain as given by the equation below:

$\begin{matrix} {{{f_{i,{ideal}}(x)} \equiv {{\hat{f}}_{i,{ideal}}(p)}} = {\frac{1}{2\pi}{{rect}_{\pi}(p)}{{rect}_{\pi}(q)}}} & {{Equation}\mspace{14mu} 2} \end{matrix}$

where p=(p,q)^(T) is a point in 2D angular frequency space,

is the Fourier transform operator, and rect_(π)(p)=1 if |p|≦π, or rect_(π)(p)=0 otherwise.

The Fourier transform of the EWA interpolation filter in source space may be given by the following equation:

$\begin{matrix} {{{\hat{f}}_{i,{EWA}}(p)} = {\frac{1}{2\pi}{\exp\left( {- \frac{\sigma_{i}^{2}\left( {p^{2} + q^{2}} \right)}{2}} \right)}}} & {{Equation}\mspace{14mu} 3} \end{matrix}$

where V_(i)=σ_(i) ²I₂, and σ_(i) ² is the interpolation variance. Notably, the optimal source space covariance matrix V_(i) is isotropic, as the sampling in source space is assumed to be uniform.

The EWA kernel may be compared with the ideal sinc kernel by computing the MSE between these two kernels according to the equation below:

$\begin{matrix} {\begin{matrix} {{{{mse}\left( \sigma_{i} \right)} = {{{{f_{i,{ideal}}(x)} - {f_{i,{EWA}}(x)}}}2}},} \\ {{= {{{{{\hat{f}}_{i,{ideal}}(p)} - {{\hat{f}}_{i,{EWA}}(p)}}}2}},} \\ {{= {\propto {{{{{{rect}_{\pi}(p)}{{rect}_{\pi}(q)}} - {\exp\left( {- \frac{\sigma_{i}^{2}}{2\left( {p^{2} + q^{2}} \right)}} \right)}}}2}}},} \end{matrix} \propto {1 + {\frac{1}{4{\pi\sigma}_{i}^{2}}{\exp\left( {1 - {4 \cdot {{erf}\left( \frac{{\pi\sigma}_{i}}{\sqrt{(2)}} \right)}}} \right)}}}} & {{Equation}\mspace{14mu} 4} \end{matrix}$ where the first step follows directly from Parseval's theorem, and where erf(x) is the Gaussian error function. An optimal (least-squares) tradeoff between anti-aliasing and blurring may be obtained by choosing an interpolation variance σ_(i) such that mse(σ_(i)) is minimized. Numerical minimization of Equation 4 yields the following equation: {circumflex over (σ)}_(i)=argmin_(σi)(mse(σ_(i)))≈0.39  Equation 5

One skilled in the art would recognize that using the ideal sinc directly is not optimal in practice due to the ideal filter's slow decay (resulting higher compute complexity) and that truncating the ideal filter may lead to objectionable filter quality degradations in some cases (e.g., Gibbs oscillations).

Second, the interpolation covariance may be optimized in target space, according to one embodiment. To implement EWA splitting, target space parameterization of ƒ_(i,EWA)(J_(k) ⁻¹x) is determined from the corresponding source space parameterization, as described above. Such a determination may be made using the following transformation property of Fourier transforms: if {circumflex over (ƒ)}(p) is the Fourier transform off ƒ(x), and if Aε

^(2×2) is an invertible matrix, then the Fourier transform operator may be given by the following equation:

$\begin{matrix} {{f({Ax})} = {\frac{1}{A}{\hat{f}\left( {A^{- T}p} \right)}}} & {{Equation}\mspace{14mu} 6} \end{matrix}$

The MSE in target space may then be given by the following equation:

$\begin{matrix} {{{mse}\left( \sigma_{i} \right)} = {{{{\frac{1}{J_{k}^{- 1}}{{\hat{f}}_{i,{ideal}}\left( {J_{k}^{T}p} \right)}} - {{\hat{f}}_{i,{EWA}}\left( {J_{k}^{T}p} \right)}}}2}} & {{Equation}\mspace{14mu} 7} \end{matrix}$

Optimizing Equation 7 yields the same {circumflex over (σ)}_(i) as determined for the source space optimization (set p′=J_(k) ^(T)p). Thus, the transformation J_(k) ^(T) transforms the optimal source interpolation covariance to the optimal destination interpolation covariance.

Third, the interpolation filter described above may be convolved with an anti-aliasing filter, according to one embodiment. The EWA resampling operation is location-dependent, i.e., the EWA filter is a locally adaptive filter. Convolving the location dependent interpolation filter with an anti-aliasing filter results in a new EWA filter with a location-dependent covariance matrix. Thus, the choice of an optimal V_(a) depends on the interpolation variance in target space: J_(k)V_(i)J_(k) ^(T). In other words, there is no single V_(a) that optimizes the EWA splatting operation. For example, if the sum of σ_(i) and σ_(a) is set to {circumflex over (σ)}_(i), filter performance may be acceptable in regions of the image where there is little or no scaling. However, regions of the image with a larger amount of scaling (e.g., significant reduction in size), may exhibit an unacceptable level of aliasing artifacts. Setting σ_(a) to a larger value may introduce an unacceptable level of blurring in regions of the image experience a large amount of magnification. Therefore, V_(a) is locally adaptive, and is determined so that its combined effect with the interpolation covariance, J_(k)V_(i)J_(k) ^(T), satisfies the Nyquist condition for preventing aliasing, as described below.

Adaptive Anti-Aliasing

A general closed form expression may be derived for the ideal adaptive anti-aliasing covariance matrix. Rather than using the MSE-based evaluation, as described above in conjunction with the interpolation kernel, the resampling operation may be analyzed in the frequency domain to derive the anti-aliasing covariance matrix. Aliasing may occur when the 2D frequency response of the transformed interpolation kernel

ƒ_(i,EWA)(J_(k) ⁻¹x) is greater than the 2D Nyquist frequency. Returning to FIG. 2, aliasing 290 may occur when the frequency content of the image exceeds the region delimited by the 2D rectangular function of the anti-aliasing filter 260. An adaptive anti-aliasing technique detects if such aliasing occurs at the intersection between the principal axes of the ellipse, 292(0) and 292(1), and the anti-aliasing filter 260, and locally adapts the non-isotropic anti-aliasing covariance matrix V_(a)=diag([σ_(a,x),σ_(a,x)]) to avoid aliasing. In geometric terms, the corresponding principal ellipse axes are scaled to fit into the Nyquist rectangle. According to the principal axis theorem, the principal axes 292 of the ellipse 294 are the eigenvectors of the covariance matrix, for real symmetric matrices.

To quantify the presence of aliasing, the frequency response at the intersection of the principal axes of the transformed ellipse may be compared with the ideal anti-aliasing filter. Aliasing may occur if this frequency response value is large compared to the optimal Gaussian filter {circumflex over (σ)}_(i). As shown in FIG. 2, after employing the transformation matrix {tilde over (C)}=J_(k)V_(i)J_(k) ^(T) the transformation axes 296 are not aligned anymore with the principal axes 292 of the target space Gaussian kernel. The principal axes 292 are obtained with an Eigen decomposition Ĉ=Q

Q^(T), where

includes the magnitudes of the principal axes, and Q includes the orthogonal directions of the principal axes.

Because only the intersection point of the axes with an ideal low-pass filter is needed, only the directions of the axes need to be determined. The direction of one of the axes is given by α=q_(1,2)/q_(1,1), where q_(i,j) denotes the entry in row i and column j of matrix Q, and the direction of the other axis is given by −α⁻¹, since the axes are orthogonal. Evaluating the decomposition yields the following equation:

$\begin{matrix} {\alpha = \frac{2{\overset{\sim}{c}}_{1,2}}{{\overset{\sim}{c}}_{1,1} - {\overset{\sim}{c}}_{2,2} - \sqrt{{4{\overset{\sim}{c}}_{1,2}^{2}} + \left( {{\overset{\sim}{c}}_{1,1} - {\overset{\sim}{c}}_{2,2}} \right)^{2}}}} & {{Equation}\mspace{14mu} 8} \end{matrix}$

Thus, the two intersection points of the EWA ellipse and the ideal low-pass filter may be given by p₁=(1,α)^(T) and p₂=(−α,1)^(T), where |α|<1, or p₁=(α⁻¹,1)^(T) and p₂=(1,−α⁻¹)^(T) otherwise. Aliasing may occur where the value of the Gaussian filter at the intersection with an ideal low-pass filter is larger than the value of the optimal Gaussian kernel. The condition for aliasing may thus be given by the following equation: exp(−½p _(i) ^(T) {hacek over (C)}p _(l))>exp(−½{circumflex over (σ)}_(i) ²),l=1,2  Equation 9

If the aliasing condition of Equation 9 holds, then the interpolation kernel may be convolved with an anti-aliasing kernel to remove the aliasing. As previously described, this convolution leads to an addition of the covariance matrices C={tilde over (C)}+V_(a). The anti-aliasing variance matrix can therefore be determined by substituting {tilde over (C)} with C and by solving for the upper bound of the inequality of Equation 9, resulting in the following equation: exp(−½p _(l) ^(T)({hacek over (C)}+V _(a))p _(l))=exp(−½{tilde over (σ)}_(i) ²),l=1,2 p _(l) ^(T) V _(a) p _(l)>{tilde over (σ)}_(i) ² −p _(l) ^(T) {tilde over (C)}p _(l) ,l=1,2  Equation 10

Combining Equation 10 above with the condition for aliasing (Equation 9) yields the following equation:

$\begin{matrix} {{\begin{pmatrix} p_{1,1}^{2} & p_{1,2}^{2} \\ p_{2,1}^{2} & p_{2,2}^{2} \end{pmatrix}\begin{pmatrix} \sigma_{a,x}^{2} \\ \sigma_{a,y}^{2} \end{pmatrix}} = \begin{pmatrix} {\max\left( {0,{{\overset{\sim}{\sigma}}_{i}^{2} - {p_{1}^{T}\overset{\bigvee}{C}p_{1}}}} \right)} \\ {\max\left( {0,{{\overset{\sim}{\sigma}}_{i}^{2} - {p_{2}^{T}\overset{\bigvee}{C}p_{2}}}} \right)} \end{pmatrix}} & {{Equation}\mspace{14mu} 11} \end{matrix}$ where p_(l)=(p_(1,l),p_(2,l))^(T), and V_(a)=diag(σ_(a,x) ²,σ_(a,y) ²) represents the anti-aliasing covariance matrix. Solving the Equation 11 for σ_(a,x) ² and σ_(a,y) ² provides an optimal choice for the EWA anti-aliasing filter in target space, according to one embodiment.

For many video rendering applications, the image transformation J_(k) includes only non-uniform scaling with little or no shearing or rotation. In such cases, Equation 11 need not be solved for arbitrarily transformed covariance matrices, and, accordingly, Equation 11 may be further simplified. More specifically, Equation 11 may be simplified since the off-diagonal elements of the matrix {tilde over (C)} are negligible compared to the diagonal elements. In some embodiments, the locally affine transformations of certain video retargeting applications may indicate that the off-diagonal elements of are {tilde over (C)} several orders of magnitude smaller than the diagonal elements, such that {tilde over (c)}_(i,j)/{tilde over (c)}_(i,i)≈10⁻³. Thus, {tilde over (C)} may be treated as a diagonal matrix, where the off-diagonal components are ignored, and the main directions of the ellipse are given by the principal axes

p₁=(1,0)^(T) and p₂=(0,1)^(T). The condition to detect aliasing given by Equation 11 may then be further simplified to the following equation: σ_(a,x) ²=max(0,{tilde over (σ)}_(i) ² −{tilde over (c)} _(1,1))|+{tilde over (c)} _(1,1) c _(1,1) ≡{tilde over (c)} _(1,1)+σ_(a,x) ²=max({tilde over (c)} _(1,1),{tilde over (σ)}_(i) ²)  Equation 12

A similar process may be used to reduce complexity of detecting aliasing in the y direction.

Bounding Box Determination

FIG. 3 illustrates the determination of a bounding box to apply to a Gaussian filter, according to one embodiment of the invention. As shown, a target space bounding box 342 is determined with respect to intersection points with a specific ellipse 344 in target space 340. As further described below, bounding box calculations may be simplified by transforming the intersection points to source space 320, where the ellipse 344 simplifies to a circle 324 within a source space bounding box 322.

Although the contributions of the Gaussian filter are ideally calculated over the entire image domain, the Gaussian weights decay rapidly from the central point of the filter. In one embodiment, Gaussian weights below a given threshold value may be discarded without appreciable image artifacts. In such cases, a bounding box may be applied to a Gaussian filter at this given threshold value where the Gaussian weights within the bounding box are considered while Gaussian weights falling outside of the bounding box are discarded. The computational performance needed to apply the Gaussian filter to the image is accordingly reduced. An axis-aligned bounding box may be derived that encloses the region of Gaussian weights that exceed the given threshold value. Evaluation of the Gaussian filter is then limited to the region within the bounding box.

In one embodiment, the given threshold defining the cut-off point for the bounding box may set to a Gaussian weight proportional to exp(−0.5). The EWA splatting equation (Equation 1) defines the implicit evaluation as −0.5x^(T)(J_(k)V_(i)J_(k) ^(T)+V_(a))⁻¹x, where the translational component may be omitted without loss of generality. This quadratic form does not directly reveal the explicit point transformation x=Ku, which may be used to determine the desired bounding box. Therefore, C is decomposed as follows C=J_(k)V_(i)J_(k) ^(T)+V_(a)=KK^(T), in order to obtain the transformation K. Since V_(i) and V_(a) are diagonal matrices, C is symmetric and can be diagonalized into an orthonormal basis, according to the following equation: C=Q

Q ^(T) =KK ^(T)  Equation 13 where Q is orthogonal, and

is diagonal. As a result, K=Q

is uniquely obtained with the Eigen decomposition.

Having obtained the explicit point transformation K, the bounding box delimiters, as illustrated in FIG. 3, may be determined. The target space bounding box 342 is delimited by four straight lines, x=±x_(b) and y=±y_(b), where x=(x,y)^(T) is a point in target space 340. In one example, where x=x_(b) could be rewritten in the form of (1,0)x=x_(b). In such a case, transforming the target coordinates back into source space would yield the following equation: (1,0)Ku=x _(b) k _(1,1) u+k _(1,2) v=x _(b)  Equation 14 where u=(u,v)^(T). Equation 14 defines a linear equation in source space 320 with normal vector (1,−k_(1,1)/k_(1,2))^(T).

In source space 320, the EWA filter kernel resembles the unit circle. In one embodiment, an optimal bounding box line may be tangent to the unit circle, because affine transformations conserve lines and intersections, as indicated by the equations below: u=(u,v)^(T)  Equation 15 (1,−k _(1,1) /k _(1,2))^(T)  Equation 16 where equation 16 is the condition for tangency. Combining equations 14, 15, and 16 yields the following equation: x _(b)=±√{square root over (k_(1,1) ² +k _(1,2) ²)}  Equation 17

In addition, where

$C = {{KK}^{T} = \begin{pmatrix} {k_{1,1}^{2} + k_{1,2}^{2}} & \cdot \\  \cdot & {k_{2,1}^{2} + k_{2,2}^{2}} \end{pmatrix}}$ (See Equation 13 and surrounding text), the bounding box simplifies to the following equations: x _(b)=±√{square root over (c_(1,1))}  Equation 18 y _(b)=±√{square root over (c_(2,2))}  Equation 19 where Equation 19 follows from applying the above bounding box calculations for y_(b). The bounding box rectangle then delimits the ellipse to a cut-off value of exp(−0.5), since the rectangle delimits the unit circle in source space. For cut-off values other than exp(−0.5), the bounding box values may be scaled by s_(bb) such that s_(bb)x_(b) and s_(bb)y_(b) generate the desired cut-off values.

EWA Rendering System

The techniques described above are efficiently implemented in a hardware architecture identified as a EWA rendering system. Although the calculations for EWA rendering are described above as being performed for each target pixel in the output image, the EWA rendering system reverses the flow such that contributions of each source pixel are accumulated into the various target pixels in the output image that are affected by a given source pixel in the input image. Accumulation is the process of combining intermediate results, intermediate result being the contribution of one mapped source pixel to one target pixel. This approach accommodates an image source that streams video one source pixel at a time. This approach also facilitates computations related to the bounding box. As originally described above, identifying the subset of source pixels with relevant contributions to a pixel in the target image may be complex, depending on the specific transformation from source space to target space. As implemented in hardware, the number of contributions of each source pixel can be more easily limited by the bounding box. After accumulating the contributions of each source pixel of the input image into the corresponding target pixels of the output image, a post-normalization function is performed to correct any truncation errors due to the bounding box and to accommodate the fact that a Gaussian filter is not a real interpolation filter. The pseudo-code presented in Table 1 below summarizes the main steps performed by the EWA splitting system, according to one embodiment:

TABLE 1 k = 1 ... W_(s)H_(s), source image index h = 1 ... W_(t)H_(t), target image index Input: pixel intensity w_(k), Jacobian J_(k), target position m(u_(k)), default variances V_(i) = σ_(i) ²I₂, V_(a) = σ_(a) ²I₂ Output: EWA splatted image f_(EWA)(x_(h)) // For each pixel in source space, calculate contribution to pixels in target space // for k ∈ W_(s)H_(s) do Calculate {tilde over (C)} = (J_(k)V_(i)J_(k) ^(T)) if adaptive then Determine V_(a) end Calculate C⁻¹ = ({tilde over (C)} + V_(a))⁻¹ Calculate c_(k) = 1/(2π) |J_(k)|{square root over (|C⁻¹|)} Calculate bounding box: {square root over (c_(1,1))}, {square root over (c_(2,2))} for x_(h) in bounding box do φ = c_(k) · exp (−½(x_(h) − m(u_(k)))^(T)C⁻¹(x_(h) − m(u_(k)))) ρ_(h) ← ρ_(h) + φ {tilde over (f)}_(EWA)(x_(h)) ← {tilde over (f)}_(EWA)(x_(h)) + φ · w_(k) end end // Normalize each pixel in target space // for h ∈ W_(t)H_(t) do Normalize f_(EWA)(x_(h)) = {tilde over (f)}_(EWA)(x_(h))/ρ_(h) end The process presented in Table 1 is further described below in the context of an implementation of the EWA rendering system, according to one embodiment.

FIG. 4 illustrates a EWA rendering system 400 as implemented within the display processor 112 of FIG. 1, according to one embodiment of the present invention. As shown, the EWA rendering system 400 includes an arithmetic unit 420, an accumulation unit 440, a memory 460, and a normalization unit 480.

The arithmetic unit 420 calculates the contributions of each source pixel in the input image to one or more target pixels in the output image, and sends the contributions to the accumulation unit 440. As shown, the arithmetic unit 420 includes a dispatch unit 422 and one or more splatting units 424.

The dispatch unit 422 receives source Jacobian and pixel values from the input image and distributes these values to one or more splatting units 424. The dispatch unit 422 may distribute the Jacobian and pixel values using any technically feasible approach, including, without limitation, a round-robin, a first-available, or a priority approach. In some embodiments, multiple dispatch units 422 may receive Jacobian and pixel values from the input image, each dispatch unit 422 distributing these values to one or more splatting units 424.

As further described below in conjunction with FIG. 5, the splatting units 424 receives the Jacobian and pixel values from the dispatch unit 422, and generates the contributions of each source pixel to one or more target pixels. The resulting contributions are then sent to the accumulation unit 440.

The accumulation unit 440 receives filtered and rasterized pixels from the arithmetic unit 420. The accumulation unit 440 accumulates contributions from a particular source pixel in the input image to one or more target pixels in the output image. The accumulation unit 440 composites the contributions with the existing target pixel data stored in the memory 460, typically using a read-modify-write operation.

Because a single source pixel in the input image may affect multiple target pixels in the output image, the accumulation unit 440 may be designed to manage output data from the arithmetic unit 420 so as to reduce the needed bandwidth to the memory 460. In addition, because the accumulated source pixel contributions may be distributed to the various target pixels in an arbitrary manner, the accumulation unit 440 may access the memory 460 in a random pattern, as compared to the regular pattern associated with the input image.

In order to reduce the bandwidth and random-access pattern to the memory 460, the accumulation unit 440 may be realized in multiple stages. Characteristics of typical access patterns may be exploited to reduce bandwidth to the memory 460. The rectangular bounding boxes described above access the memory 460 in blocks of neighboring pixels. Because source pixels are streamed into the EWA rendering system 400 in scanline order, corresponding target pixels are typically horizontally neighboring pixels in the memory 460. This access pattern also holds for vertically neighboring pixels. As such, the accumulation unit 440 may benefit from accumulating source pixel contributions to a 2D set of neighboring target pixels using an accumulation cache (not shown) associated with the accumulation unit 440. The contents of the accumulation cache may then be efficiently written as a block to the memory 460. In addition, because the arithmetic process associated with accumulation is both an associative and commutative operation, the accumulation unit 440 is separable into multiple partial accumulations, such as the level 1 accumulators 442 and the level 2 accumulator 444 as shown in FIG. 4. In some embodiments, any number of level 1 accumulators 442 and level 2 accumulators 444 may be present in the accumulation unit 440 within the scope of the present invention. In some embodiments, the accumulation unit may have only one level of accumulators, or may have more than two levels of accumulators, within the scope of the present invention.

Accumulation unit 440 performance may be further increased by taking advantage of the characteristics of non-linear warping, where horizontal lines in the source image may be rendered as arbitrarily-shaped curves in the target space. Therefore, when processing a horizontal line in source space, the above-mentioned accumulation cache may include a group of 2D blocks of memory, where each block represents a vertical set of horizontal lines in target space, and where each 2D block is individually addressable. In this manner, a horizontal line in source space may be rendered into such a 2D block within the accumulation unit 440. The 2D block may then be written efficiently to memory 460.

Accumulation unit 440 performance may be further increased by utilizing a multi-level cache, where a large accumulation cache within the accumulation unit 440 using a slower memory, may be supported by smaller and faster accumulation buffers local to the level 1 accumulators 442 and the level 2 accumulator 444, as is known in the art. In some embodiments, any number of layers of accumulation caches may be present in the accumulation unit 440 within the scope of the present invention.

In one example, a first level accumulation cache associated with the level 1 accumulators 442 includes 2D blocks for storing horizontally and vertically neighboring and overlapping pixels received from the rasterizers of the splatting units 424. The resulting 2D blocks are accumulated into a larger second level 2D accumulation cache associated with the level 2 accumulator 444, where the second level 2D accumulation cache may span more vertical lines than the 2D blocks within the first level accumulation cache. The contents of the second level 2D accumulation cache may then be written to memory 460. In one embodiment, the accumulation caches may be sized such that contributions for a given portion of the output image may be computed in a single pass, resulting in a simple write from the second level accumulation cache to the memory 460, rather than an accumulation to memory 460 using read-modify-write operations. As is known in the art, the number of accumulation cache levels, the size of the caches, and the cache type (e.g. 2-way set-associative, direct-mapped, etc.) may be optimally determined based on various factors, including, without limitation, the resolution of the input image, the frame rate, and the specific EWA rendering application.

The memory 460 receives accumulated pixel data from the accumulation unit, and stores the pixel data until EWA rendering is complete for the current input image, and the resulting output image is available for display. In some embodiments, the memory may be double-buffered so that one buffer is available for accumulating pixel data for a current input image, while the other buffer is available for sending a previously rendered image for normalization and display.

The normalization unit 480 receives the final EWA rendered from the memory 460. The normalization unit 480 performs a normalization on the accumulated pixel data in the memory 460 to correct any truncation errors due to the bounding box and to accommodate the fact that a Gaussian filter is not a real interpolation filter. The normalization unit then send the normalized output pixels to the display device 110.

FIG. 5 illustrates an EWA splatting unit 424 as implemented within the EWA rendering system 400 of FIG. 4, according to one embodiment of the present invention. As shown, the EWA splatting unit 424 includes a filter setup unit 520, a bounding box stepper 540, and a rasterizer 560.

The filter setup unit 520 receives Jacobian and pixel values from the dispatch unit 422, and generates the generates the covariance matrix, the determinants, and the bounding box, as previously described. The filter setup unit computes the contributions of each source pixel to corresponding target pixels and sends the contributions to the bounding box stepper 540. The filter setup unit 520 sends the resulting contributions to the bounding box stepper 540.

The bounding box stepper 540 receives target pixel contributions from the 520 and applies a bounding box to each of the contributions, as previously described. The bounding box defines region surrounding a given portion of target space where the weights of the Gaussian filter exceed a specified threshold value. The Gaussian filter is not applied outside the bounding box region, resulting in a reduction of computational complexity and improved performance. The output of the bounding box stepper 540 is sent to the rasterizer 560.

The rasterizer 560 maps the pixel contributions, truncated by the bounding box stepper 540, to the target space of the output image. Once the contributions are mapped to the target space, the rasterizer 560 sends the mapped contributions to the accumulation unit 440 for further processing.

In one embodiment, the data path of the splatting unit 424 may implement various linear matrix operations and non-linear functions. Two multiply-accumulate (MAC) units (not shown) may be used to calculate the covariance matrix C and the associated determinants |J_(k)| and |C|, respectively. The adaptive anti-aliasing filters, reduced to a thresholding operation as previously discussed, may be implemented as a comparator. The normalization factor 1/√{square root over (|C|)} of the Gaussian filter may be efficiently implemented using a fast inverse square root algorithm, using multiplications and additions, as is known in the art. Similarly, the square root operations associated with the bounding box calculation √{square root over (c_(i,i))} may be approximated with a fast inverse square root z·1/√{square root over (z)}. The bounding box may be rounded to an integer grid, with sufficient accuracy for generating an output image of acceptable quality. The 2-by-2 matrix inversion of the covariance matrix C may be realized by multiplying the entries of C with 1/|C|, and inverting the sign of the off-diagonal elements. The inversion may be realized with a look-up table (LUT) followed by four refining Newton iterations, as given by the equation below: z _(n+1)=2·z _(n) −z _(n) ² ·a,n=0, . . . ,3  Equation 20 where a is the value to be inverted, z_(n) is the result after n iterations, and z₀ is the initial LUT value. The sampling points of the values in the LUT may be logarithmically spaced over the function domain to increase precision. The (base-2) logarithmic look-up may be obtained by counting the number of leading zeros of the input value. A third MAC unit (not shown) may be used to realize the multiplication of c_(i,j) by 1/|C|, the bounding box scaling s_(bb)√{square root over (c_(i,i))}, and the multiplication of the normalization factors 1/(2π)|J_(k)∥C|^(−0.5). The exponential function of the rasterizer 560 may be realized with linear interpolation between uniformly spaced pre-calculated supporting points.

As is known in the art, various floating-point and fixed-point formats, at various precision levels, may be used for performing the calculations in the splatting unit 424. In one embodiment, the specific format and precision level may be determined based on the desired level of accuracy versus computational complexity.

In one embodiment, any one or more of the filter setup unit 520, the bounding box stepper 540, and the rasterizer 560 may be pipelined to increase throughput with a corresponding increase in latency.

FIG. 6 illustrates a method 600 for rendering images using EWA splatting, according to one embodiment of the present invention. Although the method steps are described in conjunction with FIGS. 1-5, persons skilled in the art will understand that any system configured to perform the method steps, in any order, falls within the scope of the present invention.

The method 600 begins at step 602, where the EWA rendering system 400 receives an input image associated with a source space from the parallel processing system 112, where the input image includes a plurality of source pixels. At step 604, the EWA rendering system 400 applies a transformation to a source pixel that maps the source pixel to a target space associated with an output image, where the output image includes a plurality of target pixels. At step 606, the EWA rendering system 400 determines at least one target pixel that is affected by the source pixel based on the transformation. At step 608, the EWA rendering system 400 applies an interpolation filter to a pixel of the input image. At step 610, the EWA rendering system 400 detects whether a condition exists that will result in aliasing. In some embodiments, the EWA rendering system 400 may detect that such an aliasing condition exists by computing a difference value between the transformed source pixel and a threshold value associated with an aliasing condition, and setting one or more parameters related to an anti-aliasing filter based on the difference.

At step 612, the EWA rendering system 400 applies an adaptive anti-aliasing filter to a pixel of the input image based on whether an aliasing condition exists, and based on the amount of aliasing. In an embodiment, the anti-aliasing filter may include a Gaussian filter. In one embodiment, the EWA rendering system 400 may apply the anti-aliasing filter by calculating a Jacobian matrix associated with the input image, based on the transformation, calculating a covariance matrix based on the source pixel, calculating a Jacobian determinant based on the Jacobian matrix, and calculating a covariance determinant based on the covariance matrix. In a further embodiment, at least one multiply-accumulate unit may be used in making at least one of these four calculations. In some embodiments, the EWA rendering system 400 may convolve the anti-aliasing filter with the interpolation filter. At step 614, in some embodiments, the EWA rendering system 400 may apply a bounding box to a pixel of the input image. The bounding box may circumscribe a region in the target space where one or more filter weights of the anti-aliasing filter exceed a threshold value. The EWA rendering system 400 may apply the bounding box by evaluating the anti-aliasing filter to the transformed source pixel over the region circumscribed by the bounding box.

At step 616, the EWA rendering system 400 rasterizes the pixel of the input image truncated by the bounding box. In some embodiments, the EWA rendering system 400 may write the transformed source pixel into a location in the output image associated with the target pixel. In some embodiments, writing the transformed source pixel may include accumulating the transformed source pixel with a value previously associated with the target pixel to create an accumulated value, and writing the accumulated value into the location in the output image associated with the target pixel. EWA rendering system 400 may accumulate the transformed source pixel by performing a first partial accumulation, where the result of the first partial accumulation is written to a first level accumulation buffer within a plurality of first level accumulation buffers, and performing a second partial accumulation based on the first partial accumulation, where the result of the second partial accumulation is written to a second level accumulation buffer that is configured to store the contents of the plurality of first level accumulation buffers.

At step 618, in some embodiments, the EWA rendering system 400 may apply a normalization function to a target pixel based on the accumulated value. At step 620, the EWA rendering system 400 sends the rendered and normalized image to a display device 112. The method 600 then terminates. As will be known, the steps of method 600 may be repeated for multiple pixels covering a portion of the input image or the entire input image, within the scope of the present invention.

In sum, techniques are disclosed for efficiently rendering visual content from a source format to a target format aspect with reduced blurring as compared to current EWA splatting techniques. EWA splatting is optimized by choosing certain filter parameters and utilizing an adaptive anti-aliasing technique that determines an optimal tradeoff between blurring and aliasing. Cut-off points for the infinite impulse response (IIR) filters used in EWA rendering are selected in the rendered target space, providing acceptable filter quality with greater computational efficiency relative to ideal IIR filters. A hardware architecture is configured for real-time non-linear EWA rendering of high-resolution images with lower cost, lower power, and smaller integrated circuit size relative to prior techniques. A two-level accumulating caching architecture reduces memory bandwidth usage relative to prior techniques.

Various embodiments of the invention may be implemented as a program product for use with a computer system. The computer system may be any device suitable for practicing one or more embodiments of the present invention, including, without limitation, a personal computer, video game console, personal digital assistant, rendering engine, mobile device, or dedicated hardware platform, such as a very large scale integrated (VLSI) circuit, a field-programmable gate array (FPGA), or an application specific integrated circuit (ASIC). The program(s) of the program product define functions of the embodiments (including the methods described herein) and can be contained on a variety of computer-readable storage media. Illustrative computer-readable storage media include, but are not limited to: (i) non-writable storage media (e.g., read-only memory devices within a computer such as CD-ROM disks readable by a CD-ROM drive, flash memory, ROM chips or any type of solid-state non-volatile semiconductor memory) on which information is permanently stored; and (ii) writable storage media (e.g., floppy disks within a diskette drive or hard-disk drive or any type of solid-state random-access semiconductor memory) on which alterable information is stored.

The invention has been described above with reference to specific embodiments and numerous specific details are set forth to provide a more thorough understanding of the invention. Persons skilled in the art, however, will understand that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention. The foregoing description and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. 

What is claimed is:
 1. A computer-implemented method to non-linearly warp an input image from a source aspect ratio to a target aspect ratio, the computer-implemented method comprising: receiving an input image associated with a source space having the source aspect ratio, the input image comprising a plurality of source pixels; applying an adaptive transformation to a source pixel within the plurality of source pixels and by operation of one or more computer processors, the adaptive transformation mapping the source pixel to a target space associated with an output image comprising a plurality of target pixels, the target space having the target aspect ratio, which is different from the source aspect ratio, wherein applying the adaptive transformation comprises determining filter parameters based on trading off blurring and aliasing, including calculating one or more determinants based on one or more matrices associated with each source pixel, where the one or more matrices include at least one of a Jacobian matrix and a covariance matrix; determining a target pixel, of the plurality of target pixels, that is affected by the source pixel based on the adaptive transformation; and writing the transformed source pixel into a location in the output image associated with the target pixel, wherein the output image is generated based on the input image and to the exclusion of any other input image.
 2. The computer-implemented method of claim 1, wherein the adaptive transformation is determined by calculating an optimal interpolation filter in the target space.
 3. The computer-implemented method of claim 2, further comprising convolving the optimal interpolation filter with an anti-aliasing filter resulting in the adaptive transformation, wherein the adaptive transformation satisfies an aliasing condition.
 4. The computer-implemented method of claim 3, wherein the anti-aliasing filter is applied only upon determining that the adaptive transformation satisfies the aliasing condition, wherein the anti-aliasing filter is determined by computing a difference value between the optimal interpolation filter and a threshold value associated with the aliasing condition; and setting one or more parameters related to the anti-aliasing filter based on the difference value.
 5. The computer-implemented method of claim 1, wherein determining a target pixel, of the plurality of target pixels, further comprises determining a bounding box circumscribing a region in the target space where one or more filter weights of the adaptive transformation exceed a threshold value.
 6. The computer-implemented method of claim 1, wherein writing the transformed source pixel comprises: accumulating the transformed source pixel with a value previously associated with the target pixel to create an accumulated value; and writing the accumulated value into the location in the output image associated with the target pixel.
 7. The computer-implemented method of claim 6, wherein accumulating the transformed source pixel comprises: performing a first partial accumulation, wherein the result of the first partial accumulation is written to a first level accumulation buffer within a plurality of first level accumulation buffers; and performing a second partial accumulation based on the first partial accumulation, wherein the result of the second partial accumulation is written to a second level accumulation buffer that is configured to store the contents of the plurality of first level accumulation buffers.
 8. The computer-implemented method of claim 6, further comprising normalizing the target pixel based on the accumulated value.
 9. The computer-implemented method of claim 1, wherein the adaptive transformation comprises a Gaussian filter.
 10. A non-transitory computer-readable medium including instructions executable to perform an operation to warp an input image, the operation comprising: receiving an input image associated with a source space having the source aspect ratio, the input image comprising a plurality of source pixels; applying an adaptive transformation to a source pixel within the plurality of source pixels and by operation of one or more computer processors when executing the instructions, the adaptive transformation mapping the source pixel to a target space associated with an output image comprising a plurality of target pixels, the target space having the target aspect ratio, which is different from the source aspect ratio, wherein applying the adaptive transformation comprises determining filter parameters based on trading off blurring and aliasing, including calculating one or more determinants based on one or more matrices associated with each source pixel, where the one or more matrices include at least one of a Jacobian matrix and a covariance matrix; determining a target pixel, of the plurality of target pixels, that is affected by the source pixel based on the adaptive transformation; and writing the transformed source pixel into a location in the output image associated with the target pixel, wherein the output image is generated based on the input image and to the exclusion of any other input image.
 11. The non-transitory computer-readable medium of claim 10, wherein the adaptive transformation is determined by calculating an optimal interpolation filter in the target space.
 12. The non-transitory computer-readable medium of claim 11, wherein the operation further comprises: convolving the optimal interpolation filter with an anti-aliasing filter resulting in the adaptive transformation, wherein the adaptive transformation satisfies an aliasing condition.
 13. The non-transitory computer-readable medium of 12, wherein the anti-aliasing filter is determined by: computing a difference value between the optimal interpolation filter and a threshold value associated with the aliasing condition; and setting one or more parameters related to the anti-aliasing filter based on the difference value.
 14. The non-transitory computer-readable medium of claim 10, wherein determining a target pixel, of the plurality of target pixels, further comprises determining a bounding box circumscribing a region in the target space where one or more filter weights of the adaptive transformation exceed a threshold value.
 15. the non-transitory computer-readable medium of claim 10, wherein writing the transformed source pixel comprises: accumulating the transformed source pixel with a value previously associated with the target pixel to create an accumulated value; and writing the accumulated value into the location in the output image associated with the target pixel.
 16. A computing system to non-linearly warp an input image from a source aspect ratio to a target aspect ratio, the computing system comprising: a memory configured to store instructions for a program; and one or more computer processors configured to execute the instructions for the program to perform an operation comprising: receiving an input image associated with a source space having the source aspect ratio, the input image comprising a plurality of source pixels; applying an adaptive transformation to a source pixel within the plurality of source pixels, the adaptive transformation mapping the source pixel to a target space associated with an output image comprising a plurality of target pixels, the target space having the target aspect ratio, which is different from the source aspect ratio, wherein applying the adaptive transformation comprises determining filter parameters based on trading off blurring and aliasing, including calculating one or more determinants based on one or more matrices associated with each source pixel, where the one or more matrices include at least one of a Jacobian matrix and a covariance matrix; determining a target pixel, of the plurality of target pixels, that is affected by the source pixel based on the adaptive transformation; and writing the transformed source pixel into a location in the output image associated with the target pixel, wherein the output image is generated based on the input image and to the exclusion of any other input image.
 17. The non-transitory computer-readable medium of claim 10, wherein the adaptive transformation comprises a Gaussian filter.
 18. The system of claim 16, wherein the adaptive transformation is determined by calculating an optimal interpolation filter in the target space.
 19. The system of claim 16, wherein the adaptive transformation comprises a Gaussian filter.
 20. The system of claim 16, wherein at least one multiply accumulate unit is used in at least one of matrix calculation and determinant calculation. 